function RecentPostsScrollerhathanhdong(json) 
{
                        var sHeadLines;
                        var sPostURL;
                        var objPost;
                        var sMarqueehaHTMLStart;
                        var sMarqueehaHTMLEnd;
                        var sPoweredBy;
                        var sHeadlineTerminator;
                        var sPostLinkLocation;
                                        
                        try
                        {                                               
                        sMarqueehaHTMLStart = "\<MARQUEE onmouseover=\"this.stop();\" onmouseout=\"this.start();\" ";                                                           
                        if( nWidth)
                        {
                                sMarqueehaHTMLStart = sMarqueehaHTMLStart + " width = \"" + nWidth + "%\"";
                        }
                        else
                        {
                                sMarqueehaHTMLStart = sMarqueehaHTMLStart + " width = \"100%\"";
                        }

                        if( nScrollDelay)
                        {
                                sMarqueehaHTMLStart = sMarqueehaHTMLStart + " scrolldelay = \"" + nScrollDelay + "\"";
                        }
                        if(sDirection)
                        {
                                sMarqueehaHTMLStart = sMarqueehaHTMLStart + " direction = \"" + sDirection + "\"";
                                
                                if(sDirection == "left" || sDirection =="right")
                                {                                        
                                        sHeadlineTerminator = "&nbsp;&nbsp;";
                                }
                                else
                                {                                       
                                        sHeadlineTerminator = "\<br/\>";
                                }
                        }
                        if(sOpenLinkLocation =="N")
                        {
                                sPostLinkLocation = " target= \"_blank\" ";
                        }
                        else
                        {
                                sPostLinkLocation = " ";
                        }                                               
                        sMarqueehaHTMLEnd = "\</MARQUEE\>"
                                        
                        sHeadLines = "";
                        
                        for(var nFeedCounter = 0; nFeedCounter < nMaxPosts; nFeedCounter++)
                        {
                                objPost = json.feed.entry[nFeedCounter];
               
                        for (var nCounter = 0; nCounter < objPost.link.length; nCounter++) 
                                {
                        if (objPost.link[nCounter].rel == 'alternate') 
                                        {
                                sPostURL = objPost.link[nCounter].href;
                                break;
                                }
                        }
                           sHeadLines = sHeadLines + "\<b\>"+sBulletChar+"\</b\> \<a " + sPostLinkLocation + " href=\"" + sPostURL + "\">"  + objPost.title.$t + "\</a\>" + sHeadlineTerminator;
                        }
                    
                        
                        if(sDirection == "left")
                        {                               
                                sHeadLines = sHeadLines + "&nbsp;" +  sPoweredBy;
                        }
                        else if(sDirection == "right")
                        {
                                sHeadLines = sPoweredBy +  "&nbsp;" + sHeadLines ;
                        }
                        else if(sDirection == "up")
                        {
                                sHeadLines = sHeadLines + "\<br/\>" +  sPoweredBy;
                        }
                        else
                        {
                                sHeadLines = sPoweredBy + "\<br/\>" +  sHeadLines;
                        }               
                        document.write(sMarqueehaHTMLStart + sHeadLines + sMarqueehaHTMLEnd )           
                        }
                        catch(exception)
                        {
                                alert(exception);
                        }
						}